package org.jeecg.modules.monitoring.j_monitoring.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 备件登记记录
 * @Author: xiaoyq
 * @Date:   2023-09-11
 * @Version: V1.0
 */
@Data
@TableName("m_part_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="备品备件领取记录对象", description="备品备件领取记录")
public class MPartLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**备品id*/
    @ApiModelProperty(value = "备品id")
    private String partId;
	/**备品名称*/
	@Excel(name = "备品名称", width = 15)
    @ApiModelProperty(value = "备品名称")
    private String partName;
	/**规格型号*/
	@Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private String configuration;
	/**领用数量*/
	@Excel(name = "领用数量", width = 15)
    @ApiModelProperty(value = "领用数量")
    private Integer useNum;
	/**剩余数量*/
	@Excel(name = "剩余数量", width = 15)
    @ApiModelProperty(value = "剩余数量")
    private Integer remainder;
	/**关联合同id*/
    @ApiModelProperty(value = "关联合同id")
    private String contractId;
	/**关联合同名称*/
	@Excel(name = "关联合同名称", width = 15)
    @ApiModelProperty(value = "关联合同名称")
    private String contractName;


    @Excel(name = "领用人名称", width = 15)
    @ApiModelProperty(value = "领用人名称")
    private String useByName;

	/**领用人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**领用人部门id*/
	@Excel(name = "领用人部门id", width = 15)
    @ApiModelProperty(value = "领用人部门id")
    private String createDepartId;
	/**领用人部门名称*/
	@Excel(name = "领用人部门名称", width = 15)
    @ApiModelProperty(value = "领用人部门名称")
    private String createDepartName;
	/**领用时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "领用时间")
    private Date createTime;
}
